package com.liukai.personalbills.retrofitInterface;

import com.liukai.personalbills.bean.Account;
import com.liukai.personalbills.bean.AccountMessage;
import com.liukai.personalbills.bean.UserMessage;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.PUT;
import retrofit2.http.Query;

public interface AccountAPI {

    @GET("/account/findAllAccount")
    Call<AccountMessage> findAll(@Query("username") String username);

    @POST("/account/addAccount")
    Call<UserMessage> addAccount(@Query("accountJson")String accountJson,@Query("username")String username);

    @PUT("/account/updateAccount")
    Call<UserMessage> updateAccount(@Query("accountJson")String accountJson,@Query("username")String username);

}
